using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Delete Schema Geodatabase</para>
    /// <para>Deletes a geodatabase
    /// from a user's schema in Oracle.</para>
    /// <para>删除地理数据库
    /// 来自 Oracle 中用户的架构。</para>
    /// </summary>    
    [DisplayName("Delete Schema Geodatabase")]
    public class DeleteSchemaGeodatabase : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteSchemaGeodatabase()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Database Connection</para>
        /// <para>The database connection file (.sde) of the user-schema geodatabase to be deleted. You must connect as the schema owner.</para>
        /// <para>要删除的用户方案地理数据库的数据库连接文件 （.sde）。您必须以架构所有者身份进行连接。</para>
        /// </param>
        public DeleteSchemaGeodatabase(object _input_database)
        {
            this._input_database = _input_database;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete Schema Geodatabase";

        public override string CallName => "management.DeleteSchemaGeodatabase";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input_database, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para>The database connection file (.sde) of the user-schema geodatabase to be deleted. You must connect as the schema owner.</para>
        /// <para>要删除的用户方案地理数据库的数据库连接文件 （.sde）。您必须以架构所有者身份进行连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public DeleteSchemaGeodatabase SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}